LDRA Testbed ® Code Review Report

Group : PVM-misc






Overall Result: FAIL






Report Production Report Configuration Analysis phases
  • C/C++ LDRA Testbed Version: 8.1.0
  • Config. File: C:\Testbed_CCPP_810\c\creport.dat
  • Produced On: Thu Sep 03 2009 at 14:17:49
  • Penalty File: C:\Testbed_CCPP_810\c\cpen.dat
  • Report Level: Summary Report
  • Procedures Reported: Fails Only
  • Programming Standards Model: CERT
  • Line Numbers refer to: Original Source File
  • Violation Details: Violations Only
  • Reporting Scope: Full analysis scope
  • Static: Yes
  • Complexity: No
  • Static Data Flow: No
  • Information Flow: No
  • Cross Reference: No


Contents

Overall Quality Summary
Report on Program Components
Key to Terms





Overall Quality Summary



Totals of Violations for Selected Quality Standards

'-' indicates required Analysis Phase results are not yet available.
'Off' indicates that the standard is switched off in the Penalty File (<lang>pen.dat).
'MR'indicates that the standard is Misra Restricted.

Number of Violations LDRA Code (M) Mandatory Standards CERT Code
27
9 S CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
2
20 S CERT DCL31-C
7
30 S CERT EXP30-C,EXP31-C
-
5 D CERT EXP33-C
0
39 S CERT FLP30-C
0
43 S CERT ENV33-C,SIG32-C
0
47 S CERT ARR30-C
0
71 S CERT DCL30-C,MEM36-C
0
86 S CERT ERR31-C
65
93 S CERT INT01-C,INT02-C,INT07-C
5
94 S CERT EXP11-C,EXP36-C,INT11-C
1
98 S CERT EXP37-C
-
17 D CERT DCL32-C
-
19 D CERT EXP37-C
-
20 D CERT DCL31-C,ERR30-C
-
24 D CERT DCL31-C
-
1 X CERT ARR31-C
0
134 S CERT EXP10-C,EXP30-C
-
35 D CERT EXP02-C,EXP10-C,EXP30-C
0
1 Q CERT EXP02-C,EXP10-C,EXP30-C
11
157 S CERT STR05-C,STR30-C
251
170 S CERT DCL07-C,EXP37-C
-
41 D CERT EXP37-C
-
42 D CERT DCL30-C
-
43 D CERT INT32-C,INT33-C
0
248 S CERT INT33-C
-
45 D CERT EXP08-C,EXP34-C
-
49 D CERT FIO42-C
15
326 S CERT DCL31-C
0
344 S CERT EXP32-C
-
51 D CERT MEM30-C
0
355 S CERT DCL32-C
0
403 S CERT INT34-C
0
433 S CERT INT02-C,INT31-C
0
434 S CERT INT02-C,INT31-C,STR34-C
0
442 S CERT INT02-C,FLP33-C
0
443 S CERT INT02-C,FLP33-C
0
444 S CERT FLP33-C
0
456 S CERT MSC31-C
-
57 D CERT EXP33-C
57
476 S CERT ARR30-C
0
480 S CERT DCL33-C
1
483 S CERT MEM34-C
0
484 S CERT MEM31-C
0
487 S CERT MEM35-C
0
489 S CERT DCL33-C,FIO43-C
0
493 S CERT INT32-C
0
494 S CERT INT32-C
176
496 S CERT EXP37-C
-
61 X CERT DCL32-C

Number of Violations LDRA Code (M) Mandatory Standards CERT Code
-
64 X CERT ARR30-C
-
69 D CERT EXP33-C
0
562 S Use of ++,-- or = in macro parameters. CERT PRE31-C
-
75 D CERT FIO31-C
-
68 X CERT DCL00-C
-
69 X CERT ARR30-C
0
573 S Macro concatenation of uni char names. CERT PRE30-C
0
575 S Linkage differs from previous declaration. CERT DCL36-C
0
576 S Function pointer is of wrong type. CERT DCL35-C,EXP08-C


Number of Violations LDRA Code (C) Checking (Mandatory) Standards CERT Code

No Standards have been set as Checking.

Number of Violations LDRA Code (O) Optional Standards CERT Code
0
5 S CERT MSC03-C
41 12 S CERT MSC01-C
0
21 S CERT DCL07-C
-
1 D CERT MSC13-C
-
4 D CERT MSC13-C
-
7 D CERT MSC13-C
-
8 D CERT MSC08-C
-
15 D CERT MSC13-C
0
41 S CERT DCL10-C,DCL11-C
28 44 S CERT DCL03-C,INT06-C
0
50 S CERT INT13-C
0
52 S CERT INT02-C
0
54 S CERT EXP06-C
0
57 S CERT MSC03-C,MSC12-C
8 58 S CERT MSC03-C
2 59 S CERT MSC03-C
0
73 S CERT INT12-C
9 79 S CERT PRE03-C
0
81 S CERT PRE07-C
0
85 S CERT INT09-C
10 95 S CERT EXP11-C
0
99 S CERT MSC02-C
0
101 S CERT INT02-C
-
27 D CERT DCL15-C
11 113 S CERT MSC09-C
11 77 S CERT PRE02-C
10 78 S CERT PRE01-C,PRE02-C
7 96 S CERT INT02-C
0
115 S CERT STR03-C
0
119 S CERT MSC04-C
7 120 S CERT INT13-C
0
125 S CERT PRE05-C
0
131 S CERT DCL01-C
13 132 S CERT MSC02-C
0
133 S CERT EXP02-C
15 135 S CERT DCL07-C
0
139 S CERT MSC07-C
0
140 S CERT MSC07-C
0
176 S CERT MSC10-C
13 177 S CERT DCL04-C
9 200 S CERT DCL00-C
145 201 S CERT DCL06-C,EXP07-C,EXP09-C
0
203 S CERT EXP05-C
0
218 S CERT PRE04-C
2 243 S CERT PRE06-C
28 273 S CERT PRE03-C
1 299 S CERT DCL05-C
0
1 J CERT MSC07-C
10 302 S CERT MSC04-C
0
329 S CERT INT07-C

Number of Violations LDRA Code (O) Optional Standards CERT Code
14 331 S CERT INT13-C
0
332 S CERT INT02-C
0
334 S CERT INT02-C
6 340 S CERT PRE00-C
3 352 S CERT DCL12-C
-
50 D CERT MEM00-C
21 361 S CERT EXP00-C
0
376 S CERT MSC10-C
3 381 S CERT DCL05-C
35 382 S CERT EXP12-C
-
53 D CERT EXP08-C
0
387 S CERT DCL08-C
17 400 S CERT EXP03-C
0
401 S CERT ARR00-C
0
406 S CERT EXP02-C
-
54 D CERT EXP08-C
0
408 S CERT EXP02-C
0
432 S CERT INT07-C
0
438 S CERT EXP08-C
2 439 S CERT INT15-C
0
440 S CERT INT15-C
2 446 S CERT INT02-C
0
452 S CERT INT02-C
0
457 S CERT INT02-C
1 458 S CERT INT02-C,INT07-C
0
486 S CERT FIO00-C
0
488 S CERT INT08-C
0
491 S CERT INT02-C
-
61 D CERT DCL15-C
-
62 D CERT DCL13-C
0
515 S CERT DCL04-C
-
65 D CERT MSC12-C
-
70 D CERT MSC12-C
0
553 S Function and proto should both be static. CERT DCL15-C
-
72 D CERT EXP10-C
-
67 X CERT DCL02-C
-
74 D CERT EXP10-C
0
568 S #include "filename" uses standard library name. CERT PRE04-C
4 577 S Sizeof argument is a pointer. CERT EXP01-C
6 578 S Sizeof used in arithmetic expression. CERT EXP03-C
-
78 D CERT DCL00-C
0
584 S Remainder of % op could be negative. CERT INT10-C
5 585 S Bitwise and arith operations on same data. CERT INT14-C
0
586 S Format is not %j for user defined type. CERT INT15-C


Number of Mandatory Standards checked 39
Number of Checking Standards checked 0
Number of Optional Standards checked 77
Total Standards checked 116


ANALYSIS OF 1 FILE(S) IN THIS GROUP HAS FAILED OR NOT BEEN RUN. QUALITY RESULTS NOT SHOWN

D:\Code\SAMATE\SATE2009\sate2009_C_test_cases\c\pvm\pvm3\misc\xhoster\hostc.c





OVERALL RESULT: FAIL




Out of 21 program components, 0 (0.00 %) pass ( of which 0 conditionally pass ) and 21 fail ( of which 0 fail only because of insufficient comments )

Procedure Results

Quality Result   Procedure   Source File   Unique Violations    
           
FAIL Global Program
FAIL pvm_fork pvm_fork.c 5 -
FAIL hostcount xhoster.c 3 -
FAIL host_was_added xhoster.c 1 -
FAIL host_was_deleted xhoster.c 4 -
FAIL main xhoster.c 7 -
FAIL pvm_cb xhoster.c 3 -
FAIL ok_cb xhoster.c 6 -
FAIL okall_cb xhoster.c 6 -
FAIL quit_cb xhoster.c 2 -
FAIL log_this xhoster.c 4 -
FAIL TextLength xhoster.c 2 -
FAIL TextReplace xhoster.c 3 -
FAIL TextAppend xhoster.c 6 -
FAIL create_widget xhoster.c 6 -
FAIL hoster xhoster.c 8 -
FAIL next_pwd xhoster.c 5 -
FAIL hoster2 xhoster.c 6 -
FAIL close_slot xhoster.c 4 -
FAIL pl_startup xhoster.c 12 -
FAIL phase1 xhoster.c 9 -


Global Information

Source Files in Group

Name Last Modification Date
D:\Code\SAMATE\SATE2009\sate2009_C_test_cases\c\pvm\pvm3\misc\xhoster\xhoster.c Wed May 18 10:55:27 2005
D:\Code\SAMATE\SATE2009\sate2009_C_test_cases\c\pvm\pvm3\misc\xhoster\hostc.c Thu Jul 08 11:59:49 1999
D:\Code\SAMATE\SATE2009\sate2009_C_test_cases\c\pvm\pvm3\misc\pvm_fork.c Wed Jul 09 06:30:42 1997




Global Basic Information

Number of procedures: 20
Number of locally uncalled procedures: 8
Number of reformatted executable lines: 1413
Number of lines of comments: 210



Summary Report on all Program Components which FAIL



Globals / code outside procedures - FAIL

Standards Violation Summary - All files

Code File: Src Line Violation Standard
O xhoster.c: 30 Found #define. CERT PRE03-C
O xhoster.c: 33 Found #define. CERT PRE03-C
O xhoster.c: 33 Macro parameter not in brackets. CERT PRE01-C,PRE02-C
O xhoster.c: 33 Macro replacement list needs parentheses. CERT PRE02-C
O xhoster.c: 37 Included file not protected with #define. CERT PRE06-C
O hostc.h: 49 Enum, struct or union not typedeffed. CERT DCL05-C
O hostc.h: 50 Identifier not declared on new line. CERT DCL04-C
O hostc.h: 60 Identifier not declared on new line. CERT DCL04-C
O hostc.h: 60 Pointer to function declared without typedef. CERT DCL05-C
M hostc.h: 64 Declaration is missing type. CERT DCL31-C
O xhoster.c: 38 Included file not protected with #define. CERT PRE06-C
O bfunc.h: 63 Found #define. CERT PRE03-C
O bfunc.h: 68 Found #define. CERT PRE03-C
O bfunc.h: 68 Macro parameter not in brackets. CERT PRE01-C,PRE02-C
O bfunc.h: 68 Macro replacement list needs parentheses. CERT PRE02-C
O bfunc.h: 69 Found #define. CERT PRE03-C
O bfunc.h: 69 Macro parameter not in brackets. CERT PRE01-C,PRE02-C
O bfunc.h: 69 Macro replacement list needs parentheses. CERT PRE02-C
O bfunc.h: 70 Found #define. CERT PRE03-C
O bfunc.h: 70 Macro parameter not in brackets. CERT PRE01-C,PRE02-C
O bfunc.h: 70 Macro replacement list needs parentheses. CERT PRE02-C
O xhoster.c: 41 Found #define. CERT PRE03-C
O xhoster.c: 41 Define used for numeric constant. CERT DCL00-C
O xhoster.c: 45 Found #define. CERT PRE03-C
O xhoster.c: 45 Define used for numeric constant. CERT DCL00-C
O xhoster.c: 49 Found #define. CERT PRE03-C
O xhoster.c: 49 Use of function like macro. CERT PRE00-C
O xhoster.c: 49 Macro contains unacceptable items CERT PRE03-C
O xhoster.c: 53 Found #define. CERT PRE03-C
O xhoster.c: 53 Use of function like macro. CERT PRE00-C
O xhoster.c: 53 Macro contains unacceptable items CERT PRE03-C
O xhoster.c: 56 Found #define. CERT PRE03-C
O xhoster.c: 56 Macro parameter not in brackets. CERT PRE01-C,PRE02-C
O xhoster.c: 56 Use of banned function or variable. CERT DCL03-C,INT06-C
O xhoster.c: 56 Use of function like macro. CERT PRE00-C
O xhoster.c: 56 Macro contains unacceptable items CERT PRE03-C
O xhoster.c: 57 Found #define. CERT PRE03-C
O xhoster.c: 57 Use of banned function or variable. CERT DCL03-C,INT06-C
O xhoster.c: 57 Macro parameter not in brackets. CERT PRE01-C,PRE02-C
O xhoster.c: 57 Macro replacement list needs parentheses. CERT PRE02-C
O xhoster.c: 58 Found #define. CERT PRE03-C
O xhoster.c: 58 Macro parameter not in brackets. CERT PRE01-C,PRE02-C
O xhoster.c: 58 Macro replacement list needs parentheses. CERT PRE02-C
O xhoster.c: 58 Macro contains unacceptable items CERT PRE03-C
O xhoster.c: 60 Found #define. CERT PRE03-C
O xhoster.c: 60 Macro parameter not in brackets. CERT PRE01-C,PRE02-C
O xhoster.c: 60 Macro replacement list needs parentheses. CERT PRE02-C
O xhoster.c: 60 Macro contains unacceptable items CERT PRE03-C
O xhoster.c: 62 Found #define. CERT PRE03-C
O xhoster.c: 62 Macro parameter not in brackets. CERT PRE01-C,PRE02-C

Code File: Src Line Violation Standard
O xhoster.c: 62 Macro replacement list needs parentheses. CERT PRE02-C
O xhoster.c: 62 Macro contains unacceptable items CERT PRE03-C
O xhoster.c: 64 Found #define. CERT PRE03-C
O xhoster.c: 64 Macro parameter not in brackets. CERT PRE01-C,PRE02-C
O xhoster.c: 64 Macro replacement list needs parentheses. CERT PRE02-C
O xhoster.c: 64 Macro contains unacceptable items CERT PRE03-C
O xhoster.c: 67 Found #define. CERT PRE03-C
O xhoster.c: 67 Use of function like macro. CERT PRE00-C
O xhoster.c: 69 Found #define. CERT PRE03-C
O xhoster.c: 69 Use of function like macro. CERT PRE00-C
O xhoster.c: 71 Found #define. CERT PRE03-C
O xhoster.c: 71 Use of function like macro. CERT PRE00-C
O xhoster.c: 75 Found #define. CERT PRE03-C
O xhoster.c: 75 Macro replacement list needs parentheses. CERT PRE02-C
O xhoster.c: 75 Macro contains unacceptable items CERT PRE03-C
O xhoster.c: 83 Found #define. CERT PRE03-C
O xhoster.c: 83 Macro replacement list needs parentheses. CERT PRE02-C
O xhoster.c: 83 Macro contains unacceptable items CERT PRE03-C
O xhoster.c: 96 Declaration of type not in header file. CERT DCL12-C
O xhoster.c: 96 Enum, struct or union not typedeffed. CERT DCL05-C
O xhoster.c: 102 Found #define. CERT PRE03-C
O xhoster.c: 102 Define used for numeric constant. CERT DCL00-C
O xhoster.c: 103 Found #define. CERT PRE03-C
O xhoster.c: 103 Define used for numeric constant. CERT DCL00-C
O xhoster.c: 109 Found #define. CERT PRE03-C
O xhoster.c: 109 Define used for numeric constant. CERT DCL00-C
O xhoster.c: 110 Found #define. CERT PRE03-C
O xhoster.c: 110 Define used for numeric constant. CERT DCL00-C
O xhoster.c: 111 Found #define. CERT PRE03-C
O xhoster.c: 111 Define used for numeric constant. CERT DCL00-C
O xhoster.c: 113 Found #define. CERT PRE03-C
O xhoster.c: 113 Define used for numeric constant. CERT DCL00-C
O xhoster.c: 114 Found #define. CERT PRE03-C
O xhoster.c: 114 Define used for numeric constant. CERT DCL00-C
O xhoster.c: 116 Declaration of type not in header file. CERT DCL12-C
O xhoster.c: 116 Enum, struct or union not typedeffed. CERT DCL05-C
O xhoster.c: 117 Identifier not declared on new line. CERT DCL04-C
O xhoster.c: 120 Identifier not declared on new line. CERT DCL04-C
O xhoster.c: 170 Declaration of type not in header file. CERT DCL12-C
O xhoster.c: 176 Use of sizeof on a type. CERT EXP03-C
M xhoster.c: 176 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C

[ Top of Report | Key to Terms | Procedure Table | Contents ]






pvm_fork
(44 to 83 pvm_fork.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 52 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 52 function call with no prior declaration. CERT EXP37-C
M 52 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 57 function call with no prior declaration. CERT EXP37-C
M 57 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 62 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 62 function call with no prior declaration. CERT EXP37-C
M 62 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 63 function call with no prior declaration. CERT EXP37-C
M 63 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 69 function call with no prior declaration. CERT EXP37-C
M 69 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 69 Casting operation on a pointer. CERT EXP11-C,EXP36-C,INT11-C
M 71 function call with no prior declaration. CERT EXP37-C
M 71 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 74 function call with no prior declaration. CERT EXP37-C
M 74 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 75 function call with no prior declaration. CERT EXP37-C
M 75 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 76 function call with no prior declaration. CERT EXP37-C
M 76 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 77 function call with no prior declaration. CERT EXP37-C
M 77 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 77 Casting operation on a pointer. CERT EXP11-C,EXP36-C,INT11-C
M 78 function call with no prior declaration. CERT EXP37-C
M 78 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






hostcount
(192 to 202 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 192 Declaration is missing type. CERT DCL31-C
M 197 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 197 function call with no prior declaration. CERT EXP37-C
M 197 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 199 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 200 function call with no prior declaration. CERT EXP37-C
M 200 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 201 function call with no prior declaration. CERT EXP37-C
M 201 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






host_was_added
(205 to 209 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 205 Declaration is missing type. CERT DCL31-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






host_was_deleted
(212 to 222 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 212 Declaration is missing type. CERT DCL31-C
M 217 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 217 function call with no prior declaration. CERT EXP37-C
M 217 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 218 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 219 function call with no prior declaration. CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






main
(225 to 295 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 225 Declaration is missing type. CERT DCL31-C
M 236 function call with no prior declaration. CERT EXP37-C
M 236 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 247 function call with no prior declaration. CERT EXP37-C
M 247 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 249 function call with no prior declaration. CERT EXP37-C
M 249 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 250 function call with no prior declaration. CERT EXP37-C
M 250 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 259 function call with no prior declaration. CERT EXP37-C
M 259 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 260 function call with no prior declaration. CERT EXP37-C
M 260 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 261 function call with no prior declaration. CERT EXP37-C
M 261 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 263 function call with no prior declaration. CERT EXP37-C
M 265 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 265 function call with no prior declaration. CERT EXP37-C
M 265 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 266 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 269 function call with no prior declaration. CERT EXP37-C
M 269 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 270 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 270 function call with no prior declaration. CERT EXP37-C
M 270 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 271 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 271 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 271 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 273 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 274 function call with no prior declaration. CERT EXP37-C
M 274 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 276 function call with no prior declaration. CERT EXP37-C
M 276 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 277 function call with no prior declaration. CERT EXP37-C
M 277 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 278 function call with no prior declaration. CERT EXP37-C
M 278 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 284 function call with no prior declaration. CERT EXP37-C
M 284 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 285 function call with no prior declaration. CERT EXP37-C
M 285 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 289 function call with no prior declaration. CERT EXP37-C
M 290 function call with no prior declaration. CERT EXP37-C
M 291 function call with no prior declaration. CERT EXP37-C
M 291 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 293 function call with no prior declaration. CERT EXP37-C
M 293 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






pvm_cb
(298 to 319 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 306 function call with no prior declaration. CERT EXP37-C
M 306 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 307 function call with no prior declaration. CERT EXP37-C
M 307 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 307 Casting operation on a pointer. CERT EXP11-C,EXP36-C,INT11-C
M 309 function call with no prior declaration. CERT EXP37-C
M 311 function call with no prior declaration. CERT EXP37-C
M 311 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 315 function call with no prior declaration. CERT EXP37-C
M 315 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






ok_cb
(322 to 342 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 331 Array index not unsigned. CERT ARR30-C
M 331 Value is not of appropriate type. : unsigned int int hostlist [ curhost CERT INT01-C,INT02-C,INT07-C
M 331 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 331 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 331 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 336 function call with no prior declaration. CERT EXP37-C
M 336 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 338 function call with no prior declaration. CERT EXP37-C
M 338 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 338 Array index not unsigned. CERT ARR30-C
M 338 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 339 function call with no prior declaration. CERT EXP37-C
M 339 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 341 function call with no prior declaration. CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






okall_cb
(345 to 367 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 355 Array index not unsigned. CERT ARR30-C
M 355 Value is not of appropriate type. : unsigned int int hostlist [ curhost CERT INT01-C,INT02-C,INT07-C
M 356 Array index not unsigned. CERT ARR30-C
M 356 Value is not of appropriate type. : unsigned int int hostlist [ curhost CERT INT01-C,INT02-C,INT07-C
M 356 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 356 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 356 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 359 function call with no prior declaration. CERT EXP37-C
M 361 function call with no prior declaration. CERT EXP37-C
M 361 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 363 function call with no prior declaration. CERT EXP37-C
M 363 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 363 Array index not unsigned. CERT ARR30-C
M 363 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 364 function call with no prior declaration. CERT EXP37-C
M 364 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 366 function call with no prior declaration. CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






quit_cb
(370 to 378 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 376 function call with no prior declaration. CERT EXP37-C
M 376 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






log_this
(381 to 394 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 381 Declaration is missing type. CERT DCL31-C
M 391 function call with no prior declaration. CERT EXP37-C
M 391 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 392 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 392 Value is not of appropriate type. : unsigned int signed char s [ strlen ( s ) CERT INT01-C,INT02-C,INT07-C
M 392 Value is not of appropriate type. : unsigned int signed char s [ strlen ( s ) - 1 CERT INT01-C,INT02-C,INT07-C
M 393 function call with no prior declaration. CERT EXP37-C
M 393 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






TextLength
(397 to 403 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 401 function call with no prior declaration. CERT EXP37-C
M 401 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






TextReplace
(406 to 422 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 406 Declaration is missing type. CERT DCL31-C
M 409 Parameter not declared explicitly. CERT DCL31-C
M 414 function call with no prior declaration. CERT EXP37-C
M 414 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 415 function call with no prior declaration. CERT EXP37-C
M 415 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 416 function call with no prior declaration. CERT EXP37-C
M 416 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 417 function call with no prior declaration. CERT EXP37-C
M 417 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 418 function call with no prior declaration. CERT EXP37-C
M 418 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 419 function call with no prior declaration. CERT EXP37-C
M 419 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 420 function call with no prior declaration. CERT EXP37-C
M 420 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 421 function call with no prior declaration. CERT EXP37-C
M 421 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






TextAppend
(425 to 441 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 425 Declaration is missing type. CERT DCL31-C
M 428 Parameter not declared explicitly. CERT DCL31-C
M 432 function call with no prior declaration. CERT EXP37-C
M 432 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 440 function call with no prior declaration. CERT EXP37-C
M 440 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 438 Actual and formal parameters inconsistent (MR). CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






create_widget
(444 to 546 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 444 Declaration is missing type. CERT DCL31-C
M 455 function call with no prior declaration. CERT EXP37-C
M 455 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 458 function call with no prior declaration. CERT EXP37-C
M 458 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 461 function call with no prior declaration. CERT EXP37-C
M 461 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 461 Array index not unsigned. CERT ARR30-C
M 461 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 462 function call with no prior declaration. CERT EXP37-C
M 462 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 462 Array index not unsigned. CERT ARR30-C
M 462 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 463 function call with no prior declaration. CERT EXP37-C
M 463 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 463 Array index not unsigned. CERT ARR30-C
M 463 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 464 function call with no prior declaration. CERT EXP37-C
M 464 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 464 Array index not unsigned. CERT ARR30-C
M 464 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 465 function call with no prior declaration. CERT EXP37-C
M 465 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 468 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 468 function call with no prior declaration. CERT EXP37-C
M 469 function call with no prior declaration. CERT EXP37-C
M 469 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 469 Array index not unsigned. CERT ARR30-C
M 469 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 470 function call with no prior declaration. CERT EXP37-C
M 470 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 474 function call with no prior declaration. CERT EXP37-C
M 474 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 474 Array index not unsigned. CERT ARR30-C
M 474 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 475 function call with no prior declaration. CERT EXP37-C
M 475 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 476 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 477 function call with no prior declaration. CERT EXP37-C
M 477 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 477 Array index not unsigned. CERT ARR30-C
M 477 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 478 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 478 function call with no prior declaration. CERT EXP37-C
M 478 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 482 function call with no prior declaration. CERT EXP37-C
M 482 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 482 Array index not unsigned. CERT ARR30-C
M 482 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 483 Casting operation on a pointer. CERT EXP11-C,EXP36-C,INT11-C

Code Line Violation Standard
M 485 function call with no prior declaration. CERT EXP37-C
M 485 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 485 Array index not unsigned. CERT ARR30-C
M 485 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 491 function call with no prior declaration. CERT EXP37-C
M 491 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 495 function call with no prior declaration. CERT EXP37-C
M 495 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 495 Array index not unsigned. CERT ARR30-C
M 495 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 496 function call with no prior declaration. CERT EXP37-C
M 496 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 496 Array index not unsigned. CERT ARR30-C
M 496 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 497 function call with no prior declaration. CERT EXP37-C
M 497 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 497 Array index not unsigned. CERT ARR30-C
M 497 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 498 function call with no prior declaration. CERT EXP37-C
M 498 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 498 Array index not unsigned. CERT ARR30-C
M 498 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 499 function call with no prior declaration. CERT EXP37-C
M 499 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 499 Array index not unsigned. CERT ARR30-C
M 499 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 500 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 500 function call with no prior declaration. CERT EXP37-C
M 500 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 504 function call with no prior declaration. CERT EXP37-C
M 504 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 504 Array index not unsigned. CERT ARR30-C
M 504 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 505 function call with no prior declaration. CERT EXP37-C
M 505 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 505 Array index not unsigned. CERT ARR30-C
M 505 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 506 function call with no prior declaration. CERT EXP37-C
M 506 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 506 Array index not unsigned. CERT ARR30-C
M 506 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 507 function call with no prior declaration. CERT EXP37-C
M 507 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 507 Array index not unsigned. CERT ARR30-C
M 507 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 508 function call with no prior declaration. CERT EXP37-C
M 508 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 508 Array index not unsigned. CERT ARR30-C
M 508 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 509 function call with no prior declaration. CERT EXP37-C

Code Line Violation Standard
M 509 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 512 function call with no prior declaration. CERT EXP37-C
M 512 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 512 Array index not unsigned. CERT ARR30-C
M 512 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 513 function call with no prior declaration. CERT EXP37-C
M 513 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 517 function call with no prior declaration. CERT EXP37-C
M 517 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 517 Array index not unsigned. CERT ARR30-C
M 517 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 518 function call with no prior declaration. CERT EXP37-C
M 518 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 518 Array index not unsigned. CERT ARR30-C
M 518 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 519 function call with no prior declaration. CERT EXP37-C
M 519 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 519 Array index not unsigned. CERT ARR30-C
M 519 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 520 function call with no prior declaration. CERT EXP37-C
M 520 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 520 Array index not unsigned. CERT ARR30-C
M 520 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 521 function call with no prior declaration. CERT EXP37-C
M 521 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 521 Array index not unsigned. CERT ARR30-C
M 521 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 522 function call with no prior declaration. CERT EXP37-C
M 522 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 522 Array index not unsigned. CERT ARR30-C
M 522 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 523 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 523 function call with no prior declaration. CERT EXP37-C
M 523 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 527 function call with no prior declaration. CERT EXP37-C
M 527 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 527 Array index not unsigned. CERT ARR30-C
M 527 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 530 function call with no prior declaration. CERT EXP37-C
M 530 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 530 Array index not unsigned. CERT ARR30-C
M 530 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 531 function call with no prior declaration. CERT EXP37-C
M 531 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 531 Array index not unsigned. CERT ARR30-C
M 531 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 532 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 532 function call with no prior declaration. CERT EXP37-C
M 532 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 536 function call with no prior declaration. CERT EXP37-C

Code Line Violation Standard
M 536 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 536 Array index not unsigned. CERT ARR30-C
M 536 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 539 function call with no prior declaration. CERT EXP37-C
M 539 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 539 Array index not unsigned. CERT ARR30-C
M 539 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 540 function call with no prior declaration. CERT EXP37-C
M 540 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 540 Array index not unsigned. CERT ARR30-C
M 540 Value is not of appropriate type. : unsigned int int XtSetArg ( args [ n CERT INT01-C,INT02-C,INT07-C
M 541 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 541 function call with no prior declaration. CERT EXP37-C
M 541 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 544 function call with no prior declaration. CERT EXP37-C
M 544 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 545 function call with no prior declaration. CERT EXP37-C
M 545 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






hoster
(555 to 616 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 555 Declaration is missing type. CERT DCL31-C
M 569 function call with no prior declaration. CERT EXP37-C
M 569 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 570 function call with no prior declaration. CERT EXP37-C
M 570 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 571 function call with no prior declaration. CERT EXP37-C
M 571 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 576 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 578 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 579 function call with no prior declaration. CERT EXP37-C
M 579 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 580 Array index not unsigned. CERT ARR30-C
M 580 Value is not of appropriate type. : unsigned int int hostlist [ i CERT INT01-C,INT02-C,INT07-C
M 581 function call with no prior declaration. CERT EXP37-C
M 581 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 585 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 585 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 585 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 586 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 586 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 586 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 587 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 587 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 587 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 588 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 591 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 596 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 596 function call with no prior declaration. CERT EXP37-C
M 596 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 597 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 597 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 597 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 598 Modification of string literal. CERT STR05-C,STR30-C
M 599 Modification of string literal. CERT STR05-C,STR30-C
M 599 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 599 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 599 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 600 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 607 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 609 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 614 function call with no prior declaration. CERT EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






next_pwd
(619 to 638 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 619 Declaration is missing type. CERT DCL31-C
M 626 function call with no prior declaration. CERT EXP37-C
M 630 Array index not unsigned. CERT ARR30-C
M 630 Value is not of appropriate type. : unsigned int int hostlist [ curhost CERT INT01-C,INT02-C,INT07-C
M 632 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 632 Array index not unsigned. CERT ARR30-C
M 632 Value is not of appropriate type. : unsigned int int sprintf ( buf , "Enter password for %s:\n" , hostlist [ curhost CERT INT01-C,INT02-C,INT07-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






hoster2
(641 to 701 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 641 Declaration is missing type. CERT DCL31-C
M 654 function call with no prior declaration. CERT EXP37-C
M 654 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 656 function call with no prior declaration. CERT EXP37-C
M 662 function call with no prior declaration. CERT EXP37-C
M 662 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 664 function call with no prior declaration. CERT EXP37-C
M 664 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 664 Array index not unsigned. CERT ARR30-C
M 664 Value is not of appropriate type. : unsigned int int pvm_packf ( "%d" , hostlist [ i CERT INT01-C,INT02-C,INT07-C
M 665 function call with no prior declaration. CERT EXP37-C
M 665 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 665 Array index not unsigned. CERT ARR30-C
M 665 Value is not of appropriate type. : unsigned int int pvm_packf ( "%s" , hostlist [ i CERT INT01-C,INT02-C,INT07-C
M 666 Array index not unsigned. CERT ARR30-C
M 666 Value is not of appropriate type. : unsigned int int hostlist [ i CERT INT01-C,INT02-C,INT07-C
M 669 function call with no prior declaration. CERT EXP37-C
M 669 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 671 function call with no prior declaration. CERT EXP37-C
M 671 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 672 function call with no prior declaration. CERT EXP37-C
M 672 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 678 Array index not unsigned. CERT ARR30-C
M 678 Value is not of appropriate type. : unsigned int int hp = hostlist [ i CERT INT01-C,INT02-C,INT07-C
M 680 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 682 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 684 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 687 Modification of string literal. CERT STR05-C,STR30-C
M 688 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 691 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 693 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 694 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 696 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 696 free parameter is not heap item. CERT MEM34-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






close_slot
(704 to 716 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 704 Declaration is missing type. CERT DCL31-C
M 708 function call with no prior declaration. CERT EXP37-C
M 708 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 710 function call with no prior declaration. CERT EXP37-C
M 710 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 712 function call with no prior declaration. CERT EXP37-C
M 712 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 713 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






pl_startup
(719 to 988 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 719 Declaration is missing type. CERT DCL31-C
M 742 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 744 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 746 Array index not unsigned. CERT ARR30-C
M 746 Value is not of appropriate type. : unsigned int int ( & slots [ i CERT INT01-C,INT02-C,INT07-C
M 746 Array index not unsigned. CERT ARR30-C
M 746 Value is not of appropriate type. : unsigned int int ( & slots [ i CERT INT01-C,INT02-C,INT07-C
M 746 Array index not unsigned. CERT ARR30-C
M 746 Value is not of appropriate type. : unsigned int int ( slfree ) -> s_link -> s_rlink = ( & slots [ i CERT INT01-C,INT02-C,INT07-C
M 746 Array index not unsigned. CERT ARR30-C
M 746 Value is not of appropriate type. : unsigned int int ( slfree ) -> s_link = ( & slots [ i CERT INT01-C,INT02-C,INT07-C
M 764 Array index not unsigned. CERT ARR30-C
M 764 Deprecated usage of ++ or -- operators found. CERT EXP30-C,EXP31-C
M 764 Value is not of appropriate type. : unsigned int int hp = hostlist [ nxth ++ CERT INT01-C,INT02-C,INT07-C
M 769 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 774 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 776 function call with no prior declaration. CERT EXP37-C
M 786 function call with no prior declaration. CERT EXP37-C
M 786 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 789 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 802 function call with no prior declaration. CERT EXP37-C
M 802 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 804 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 805 function call with no prior declaration. CERT EXP37-C
M 805 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 808 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 811 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 811 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 811 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 821 function call with no prior declaration. CERT EXP37-C
M 821 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 825 function call with no prior declaration. CERT EXP37-C
M 825 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 838 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 841 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 844 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 844 function call with no prior declaration. CERT EXP37-C
M 844 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 844 Casting operation on a pointer. CERT EXP11-C,EXP36-C,INT11-C
M 852 function call with no prior declaration. CERT EXP37-C
M 852 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 853 function call with no prior declaration. CERT EXP37-C
M 853 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 857 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 861 function call with no prior declaration. CERT EXP37-C
M 861 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 862 function call with no prior declaration. CERT EXP37-C
M 862 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 876 function call with no prior declaration. CERT EXP37-C
M 876 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C

Code Line Violation Standard
M 877 function call with no prior declaration. CERT EXP37-C
M 877 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 881 Value is not of appropriate type. : unsigned int int sp -> s_ebuf [ sp -> s_elen CERT INT01-C,INT02-C,INT07-C
M 882 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 882 function call with no prior declaration. CERT EXP37-C
M 882 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 883 Modification of string literal. CERT STR05-C,STR30-C
M 884 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 890 function call with no prior declaration. CERT EXP37-C
M 890 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 891 Value is not of appropriate type. : unsigned int int sp -> s_ebuf [ sp -> s_elen CERT INT01-C,INT02-C,INT07-C
M 894 Value is not of appropriate type. : bool signed char sp -> s_elen == sizeof ( sp -> s_ebuf ) CERT INT01-C,INT02-C,INT07-C
M 895 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 903 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 908 function call with no prior declaration. CERT EXP37-C
M 908 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 917 function call with no prior declaration. CERT EXP37-C
M 917 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 918 function call with no prior declaration. CERT EXP37-C
M 918 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 922 Value is not of appropriate type. : unsigned int int sp -> s_buf [ sp -> s_len CERT INT01-C,INT02-C,INT07-C
M 923 Modification of string literal. CERT STR05-C,STR30-C
M 923 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 923 function call with no prior declaration. CERT EXP37-C
M 923 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 924 Modification of string literal. CERT STR05-C,STR30-C
M 925 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 927 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 931 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 931 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 931 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 935 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 941 function call with no prior declaration. CERT EXP37-C
M 941 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 942 Value is not of appropriate type. : unsigned int int sp -> s_buf [ sp -> s_len CERT INT01-C,INT02-C,INT07-C
M 946 Value is not of appropriate type. : bool signed char sp -> s_len == sizeof ( sp -> s_buf ) CERT INT01-C,INT02-C,INT07-C
M 947 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 955 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 961 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 963 function call with no prior declaration. CERT EXP37-C
M 963 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 965 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 969 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 969 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 969 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 971 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]






phase1
(991 to 1154 xhoster.c) - FAIL

Standards Violation Summary

Code Line Violation Standard
M 991 Declaration is missing type. CERT DCL31-C
M 1007 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 1007 function call with no prior declaration. CERT EXP37-C
M 1007 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1008 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1009 function call with no prior declaration. CERT EXP37-C
M 1009 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1012 function call with no prior declaration. CERT EXP37-C
M 1012 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1018 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 1025 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1028 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1028 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1028 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1061 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1074 function call with no prior declaration. CERT EXP37-C
M 1074 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1074 function call with no prior declaration. CERT EXP37-C
M 1074 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1074 function call with no prior declaration. CERT EXP37-C
M 1074 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1075 function call with no prior declaration. CERT EXP37-C
M 1075 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1081 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1085 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 1085 function call with no prior declaration. CERT EXP37-C
M 1085 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1086 function call with no prior declaration. CERT EXP37-C
M 1086 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1087 function call with no prior declaration. CERT EXP37-C
M 1087 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1090 function call with no prior declaration. CERT EXP37-C
M 1090 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1091 function call with no prior declaration. CERT EXP37-C
M 1091 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1092 function call with no prior declaration. CERT EXP37-C
M 1092 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1093 function call with no prior declaration. CERT EXP37-C
M 1093 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1094 function call with no prior declaration. CERT EXP37-C
M 1094 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1096 Array index not unsigned. CERT ARR30-C
M 1096 Deprecated usage of ++ or -- operators found. CERT EXP30-C,EXP31-C
M 1096 Value is not of appropriate type. : unsigned int int av [ ac ++ CERT INT01-C,INT02-C,INT07-C
M 1097 Modification of string literal. CERT STR05-C,STR30-C
M 1097 Array index not unsigned. CERT ARR30-C
M 1097 Deprecated usage of ++ or -- operators found. CERT EXP30-C,EXP31-C
M 1097 Value is not of appropriate type. : unsigned int int av [ ac ++ CERT INT01-C,INT02-C,INT07-C
M 1099 Modification of string literal. CERT STR05-C,STR30-C
M 1099 Array index not unsigned. CERT ARR30-C

Code Line Violation Standard
M 1099 Deprecated usage of ++ or -- operators found. CERT EXP30-C,EXP31-C
M 1099 Value is not of appropriate type. : unsigned int int av [ ac ++ CERT INT01-C,INT02-C,INT07-C
M 1100 Modification of string literal. CERT STR05-C,STR30-C
M 1100 Array index not unsigned. CERT ARR30-C
M 1100 Deprecated usage of ++ or -- operators found. CERT EXP30-C,EXP31-C
M 1100 Value is not of appropriate type. : unsigned int int av [ ac ++ CERT INT01-C,INT02-C,INT07-C
M 1102 Modification of string literal. CERT STR05-C,STR30-C
M 1102 Array index not unsigned. CERT ARR30-C
M 1102 Deprecated usage of ++ or -- operators found. CERT EXP30-C,EXP31-C
M 1102 Value is not of appropriate type. : unsigned int int av [ ac ++ CERT INT01-C,INT02-C,INT07-C
M 1103 Modification of string literal. CERT STR05-C,STR30-C
M 1103 Array index not unsigned. CERT ARR30-C
M 1103 Deprecated usage of ++ or -- operators found. CERT EXP30-C,EXP31-C
M 1103 Value is not of appropriate type. : unsigned int int av [ ac ++ CERT INT01-C,INT02-C,INT07-C
M 1105 Array index not unsigned. CERT ARR30-C
M 1105 Value is not of appropriate type. : unsigned int int av [ ac CERT INT01-C,INT02-C,INT07-C
M 1106 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1106 Array index not unsigned. CERT ARR30-C
M 1106 Value is not of appropriate type. : unsigned int int fprintf ( stderr , "av[%d]=\"%s\" " , ac , av [ ac CERT INT01-C,INT02-C,INT07-C
M 1107 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1109 function call with no prior declaration. CERT EXP37-C
M 1109 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1110 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1111 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1114 function call with no prior declaration. CERT EXP37-C
M 1114 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1115 function call with no prior declaration. CERT EXP37-C
M 1115 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1116 function call with no prior declaration. CERT EXP37-C
M 1116 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1129 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1131 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C
M 1131 function call with no prior declaration. CERT EXP37-C
M 1131 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1136 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1145 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1145 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1145 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1147 function call with no prior declaration. CERT EXP37-C
M 1147 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1149 function call with no prior declaration. CERT EXP37-C
M 1149 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1151 function call with no prior declaration. CERT EXP37-C
M 1151 Procedure call has no prototype and no defn. CERT DCL07-C,EXP37-C
M 1152 Assignment operation in expression. CERT PRE31-C,EXP30-C,EXP31-C,FIO41-C


[ Top of Report | Key to Terms | Procedure Table | Contents ]




Key to Terms


Standards violations for procedures are printed in tables with code markers as follows:


Code (Line) Violation Standard
M (Source line number) [Text of Mandatory standard] [Appropriate rule reference]
C   [Text of Checking standard]  
O   [Text of Optional standard]  
[Source: Text of line from Source file]


                         Checking standards are considered mandatory but individual instances may be overridden by adding annotations to the source code
                         Optional standards provide additional quality criteria but may be violated

                         For some standards violations, additional information is provided in results tables
                         Note that source lines do not show macro expansions

                         "Off" in Summary tables indicates that a standard is switched off in the pen.dat file
                         "MR" in Summary tables indicates a MISRA Restricted standard which cannot be checked without the MISRA licence option.


A summary is given of the pass/fail result of each program component as follows:


Components which pass all standards are marked: Pass
Components which fail only Optional standards are marked: Conditional Pass
Components which fail on insufficient comments only are marked: Comment FAIL
Components which violate Mandatory standards are marked: FAIL



Procedure Results table breakdown (Example Only)


Unique Violations    
     
65 - 150
35 - 39 -



                         The Violation density for a function is the number of violations per reformatted line, expressed as a percentage.
                         It is an indication of code quality.

                         Functions with a high violation density are likely to be smaller functions with a large number of violations.

                         Lower density may indicate larger functions with fewer violations.

                                        (nViols / nRefLines) x 100

                         where:

                                        nViols = number of standard violations in a function.

                         and:

                                        nRefLines = number of reformatted lines in a function.

                         The unique standards failure ratio is an indication of variety of standards violations in a module.

                         Thus a function containing one instance of several different standards will have a high ratio,
                         while a function that has violated only one standards will have a low ratio.


[ Top of Report | Procedure Table | Contents ]


End of Code Review Report

Copyright © 2009 Liverpool Data Research Associates